// 接口返回数据类型
export interface ResData {
  code: number,
  msg: string
}

export interface User {
  active: number
  createTime: string,
  gender: string,
  id?: number,
  password: string,
  realname: string,
  roleId: number,
  roleName: string,
  roleRealName: string,
  updateTime: string,
  userType: string,
  userTypeName: string,
  username: string,
  version: number
}

export type Records = User[]

// 全部用户信息返回数据
export interface UserResData extends ResData {
  data: {
    records: Records,
    current:number,
    pages:number,
    size:number,
    total:number,
  }
}

// 查询用户携带参数
export interface queryParams {
  current: number,
  size: number,
  username?: string,
  realname?: string,
  userType: string
}